package service.Impl;

import org.apache.log4j.Logger;
import org.springframework.stereotype.Service;
import pojo.Dictionary;
import service.DataDictionaryService;

import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.List;

@Service("dataDictionaryService")
public class DataDictionaryServiceImpl implements DataDictionaryService{
    private static final Logger LOGGER= Logger.getLogger(DataDictionaryServiceImpl.class);
    @Resource
    private dao.dictionaryMapper dictionaryMapper;
    @Override
    public List<Dictionary> findDataDiction() {//查询所属平台信息
        List<Dictionary> dataDictionaryList=new ArrayList<Dictionary>();
        try {
            dataDictionaryList=dictionaryMapper.findPingTai();
        }catch (Exception e){
            LOGGER.error("查询平台信息失败"+e.getMessage());
        }
        return dataDictionaryList;
    }
}
